export default {
    setToken(context, token) {
        context.commit('SET_TOKEN', token)
    },
    clearToken(context) {
        context.commit('SET_TOKEN', '')
    },
    setInitUserInfo(context, userinfo) {
        context.commit('INIT_USER_INFO', userinfo)
    },
    setInitProject(context, projects) {
        context.commit('INIT_PROJECTS', projects)
    },
    setCloseWelcome(context) {
        context.commit('CLOSE_WELCOME')
    },
    setInitOpeningProjects(context, projects) {
        context.commit('INIT_OPENING_PROJECTS', projects)
    },
    setInitOpenedProjects(context, projects) {
        context.commit('INIT_OPENED_PROJECTS', projects)
    },
    setInitAuthorizingProjects(context, projects) {
        context.commit('INIT_AUTHORIZING_PROJECTS', projects)
    },
    setInitAuthorizedProjects(context, projects) {
        context.commit('INIT_AUTHORIZED_PROJECTS', projects)
    },
    setInitAuthAboutProjects(context, projects) {
        context.commit('INIT_AUTH_ABOUT_PROJECTS', projects)
    },
    setInitApplicationAboutProjects(context, projects) {
        context.commit('INIT_APPLICATION_ABOUT_PROJECTS', projects)
    },
    setInitPosts(context, posts) {
        context.commit('INIT_POSTS', posts)
    },
    setActiveTab(context, activeValue) {
        context.commit('SET_ACTIVE_TAB', activeValue)
    },
    setToogleSideBar(context) {
        context.commit('TOOGLE_SIDE_BAR')
    },
    setInitCurrentProject(context, project) {
        context.commit('INIT_CURRENT_PROJECT', project)
    },
    setInitMessageData(context, messageData) {
        context.commit('INIT_Message_Data', messageData)
    },
    setInitBaseDataInfo(context, baseDataInfo) {
        context.commit('INIT_BASE_DATA_INFO', baseDataInfo)
    },
    setInitModelDatas(context, modelDatas) {
        context.commit('INIT_MODEL_DATAS', modelDatas)
    },

    setInitCurrentProjectInfo(context, projectInfo) {
        context.commit('INIT_CURRENT_PROJECT_INFO', projectInfo)
    },
    // setInit3dData(context, data) {
    //     context.commit('INIT_3D_DATAS', data)
    // }
}